package shyre.powercraft.viewer;

import org.bukkit.World;
import org.bukkit.Chunk;
import org.bukkit.block.*;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.ChatColor;
import org.bukkit.event.block.BlockListener;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.block.BlockBreakEvent;

/**
 * Viewer block listener
 * @author Shyre
 */
public class VRBlockListener extends BlockListener {
    private final Viewer plugin;

    public VRBlockListener(final Viewer plugin) {
        this.plugin = plugin;
    }
    
    public void onBlockPlace(BlockPlaceEvent event) {
    	Player player = event.getPlayer();
    	Block block = event.getBlock();
    	plugin.getData(block);
    }
    
    public void onBlockBreak(BlockBreakEvent event) {
    	Player player = event.getPlayer();
    	Block block = event.getBlock();
    	plugin.getData(block);
    }
}
